<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix='c' uri="http://java.sun.com/jsp/jstl/core" %>
<script type="text/javascript">
function formCheck(){
    var form = window.document.f1;//폼태그 객체
    if(!form.memberId.value){
        //if(!document.getElementById("id").value){
        alert("아이디를 입력하세요");
        form.memberId.focus();
        return false;
    }
    if(!form.password.value){
        alert("패스워드를 입력하세요");
        form.password.focus();
        return false;
    }
}
function join(){
    window.location.assign("/kosta_project_final_taxi/member/join_form.jsp");
}
</script>   
<hr/>
<c:if test="${requestScope.error_message != null }">
    <font size='2' color='red'>${requestScope.error_message }</font>
</c:if>
<form action="/kosta_project_final_taxi/login.do" method="post"
          onsubmit="return formCheck();" name="f1">
<input type="hidden" name="method" value="login" >
<table>
    <tr>
        <td>아이디</td>
        <td><input type="text" name="memberId" size="20" maxlength="10" id="memberId"></td>
    </tr>
    <tr>
        <td>패스워드</td>
        <td><input type="password" name="password" size="20" maxlength="10"></td>
    </tr>
    <tr>
        <td colspan="2" align="center">
            <input type="submit" value="로그인">
            <input type="button" value="회원가입" onclick="">
        </td>
    </tr>
</table>
</form>